package cn.lili.controller.feign.store;

import cn.lili.modules.store.client.StoreStatisticsClient;
import cn.lili.modules.store.service.StoreStatisticsService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author paulG
 * @since 2022/6/24
 **/
@RestController
@RequiredArgsConstructor
public class StoreStatisticsFeignController implements StoreStatisticsClient {

    private final StoreStatisticsService storeStatisticsService;

    @Override
    public long auditNum() {
        return storeStatisticsService.auditNum();
    }

    @Override
    public long storeNum() {
        return storeStatisticsService.storeNum();
    }

    @Override
    public long todayStoreNum() {
        return storeStatisticsService.todayStoreNum();
    }

    @Override
    public long storeNumByUrban() {
        return storeStatisticsService.storeNumByUrban();
    }

    @Override
    public long auditNumByUrban() {
        return storeStatisticsService.auditNumByUrban();
    }
}
